home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / cenvid9.zip / INT16.BAT < prev    next >
DOS Batch File  |  1994-03-04  |  540b  |  21 lines

  1. @echo off
  2. REM *****************************************************
  3. REM *** Int16.bat - Show results of calls to keyboard ***
  4. REM *** ver.1       interrupt 16H                     ***
  5. REM *****************************************************
  6.  
  7. CEnvi.exe %0.bat
  8. GOTO CENVI_EXIT
  9.  
  10. printf("Press Keys to see codes returns by interrupt 16h (until <ESC>)\n");
  11.  
  12. #define ESCAPE_CODE  0x011B
  13.  
  14. do {
  15.    inreg.ah = 0;
  16.    interrupt(0x16,inreg,outreg);
  17.    printf("%04X\n",outreg.ax);
  18. } while( outreg.ax != ESCAPE_CODE );
  19.  
  20. :CENVI_EXIT
  21.